/./ # π― Biblical Prophecy Intelligence Platform - Complete Deployment Guide
π What Youβre Building
A sophisticated AI-powered system that:
- Monitors 32+ RSS feeds from your OPML automatically
- Analyzes articles using AI for biblical prophecy significance (1-10 scale)
- Auto-scrapes & saves articles scoring 5.0+ to PostgreSQL
- Tracks specific individuals (Macron, Klaus Schwab, etc.) with live scoring
- Provides real-time dashboard with threat assessment
- Uses Hugging Face AI for intelligent content analysis
π Prerequisites
β
Cloudflare Account (free tier works)
β
Hugging Face Account (free API key)
β
Your OPML file (already provided)
β
10 minutes for deployment
Ring 2 β Canonical Grounding
Ring 3 β Framework Connections
ποΈ Step 1: Create Cloudflare Infrastructure
1a. Create D1 Database
# Install Wrangler CLI
npm install -g wrangler
# Login to Cloudflare
npx wrangler login
# Create the database
npx wrangler d1 create prophecy-intelligence
# Output will show your database ID - SAVE THIS!
# Example: database_id = "12345678-1234-1234-1234-123456789abc"1b. Create KV Namespace for Caching
# Create KV namespace
npx wrangler kv:namespace create "PROPHECY_CACHE"
# Output will show your KV ID - SAVE THIS!
# Example: id = "abcdef1234567890abcdef1234567890"1c. Get Hugging Face API Key
- Go to huggingface.co
- Sign up/login
- Go to Settings β Access Tokens
- Create new token with βReadβ permissions
- SAVE THE TOKEN - youβll need it
ποΈ Step 2: Set Up Project Structure
2a. Create Project Directory
mkdir prophecy-intelligence-platform
cd prophecy-intelligence-platform
mkdir src2b. Create Required Files
Create wrangler.toml:
name = "prophecy-intelligence-platform"
main = "src/index.js"
compatibility_date = "2024-07-07"
compatibility_flags = ["nodejs_compat"]
d1_databases
binding = "PROPHECY_DB"
database_name = "prophecy-intelligence"
database_id = "YOUR_DATABASE_ID_HERE" # Replace with your actual ID
kv_namespaces
binding = "PROPHECY_CACHE"
id = "YOUR_KV_NAMESPACE_ID_HERE" # Replace with your actual ID
[vars]
HUGGINGFACE_API_KEY = "YOUR_HUGGINGFACE_KEY_HERE" # Replace with your key
AUTO_SCRAPE_THRESHOLD = "5.0"
DEBUG_MODE = "false"
triggers
crons = ["*/5 * * * *"] # Every 5 minutesCreate package.json:
{
"name": "prophecy-intelligence-platform",
"version": "1.0.0",
"description": "AI-powered biblical prophecy monitoring system",
"scripts": {
"dev": "wrangler dev",
"deploy": "wrangler deploy",
"db:init": "wrangler d1 execute prophecy-intelligence --file=schema.sql"
},
"devDependencies": {
"wrangler": "^4.0.0"
}
}2c. Copy Source Files
- Copy the Worker code from the second artifact into
src/index.js - Copy the database schema from the third artifact into
schema.sql - Update the
wrangler.tomlwith your actual database ID, KV ID, and Hugging Face key
ποΈ Step 3: Initialize Database
3a. Apply Database Schema
# Initialize the database with our schema
npx wrangler d1 execute prophecy-intelligence --file=schema.sql
# You should see: "β
Executed X statements"3b. Verify Database Setup
# Check that tables were created
npx wrangler d1 execute prophecy-intelligence --command="SELECT name FROM sqlite_master WHERE type='table';"
# Should show: analyzed_articles, target_individuals, rss_sources, etc.π Step 4: Deploy the Platform
4a. Test Locally First
# Start local development server
npm run dev
# Visit: http://localhost:8787
# You should see the dashboard with "Backend Successfully Deployed!"4b. Deploy to Production
# Deploy to Cloudflare
npm run deploy
# Output will show your live URL:
# https://prophecy-intelligence-platform.your-subdomain.workers.devπ Step 5: Load Your RSS Feeds
5a. Import Your OPML Automatically
The system will automatically start monitoring these feeds from your OPML:
// Key feeds already configured:
- Bible Prophecy Blog
- Terry James Prophecy Line
- Prophecy News Watch
- 444 Prophecy News
- UNSEALED.ORG
- Bible Prophecy Tracker
- Christ in Prophecy Journal
// + 25 more from your OPML file5b. Manual Feed Testing
# Test the analysis endpoint
curl -X POST https://your-worker.workers.dev/api/analyze \
-H "Content-Type: application/json" \
-d '{"title":"Macron Announces Peace Covenant","content":"New Middle East peace initiative","source":"test"}'
# Should return: {"score":8.2,"significance":"high","auto_scrape":true}π― Step 6: Configure Monitoring Targets
The system automatically tracks these individuals:
Tier 1 (High Priority):
- Emmanuel Macron
- Klaus Schwab
- AntΓ³nio Guterres
- Ursula von der Leyen
- Christine Lagarde
Tier 2 (Medium Priority):
- Sam Altman
- Elon Musk
- Jared Kushner
- Volodymyr Zelensky
- Benjamin Netanyahu
π§ Step 7: API Endpoints
Your deployed platform provides these endpoints:
Dashboard & Analysis:
GET /- Main intelligence dashboardGET /api/intelligence- Live feed of analyzed articlesPOST /api/analyze- Analyze single articleGET /api/targets- Target individual scores
System Management:
POST /api/scan- Manual RSS scan triggerGET /api/export- Export all data as JSON
Example API Usage:
// Get recent high-scoring articles
fetch('https://your-worker.workers.dev/api/intelligence')
.then(r => r.json())
.then(articles => console.log(articles));
// Trigger manual scan
fetch('https://your-worker.workers.dev/api/scan', {method: 'POST'})
.then(r => r.json())
.then(result => console.log('Scanned:', result.articles_processed));π Step 8: Understanding the Scoring System
Prophecy Score Calculation (0-10):
- 40% Keyword Matching - Biblical prophecy terms
- 30% Target Mentions - Tier 1/2 individuals
- 30% AI Analysis - Hugging Face semantic analysis
Auto-Scraping Trigger:
- Score β₯ 5.0 = Automatically saved to PostgreSQL
- Score β₯ 8.0 = High-priority system alert generated
- Score β₯ 9.0 = Critical alert (dashboard highlighting)
Keyword Weights (Sample):
'covenant': 3.0 // Highest prophecy significance
'peace agreement': 2.8 // Major prophetic event
'temple': 2.9 // Third temple significance
'antichrist': 3.0 // Direct prophetic reference
'digital id': 2.2 // Mark of beast implications
'global governance': 2.4 // One world governmentπ Step 9: Monitoring & Alerts
Automated Monitoring:
- Every 5 minutes: RSS feed scanning
- Every 15 minutes: Target score updates
- Every hour: System health checks
- Daily at 6 AM: Full analysis & cleanup
System Health Indicators:
- β All systems operational
- π Articles processed per hour
- π― Target mention frequency
- β οΈ Unresolved high-priority alerts
π± Step 10: Using the Dashboard
Dashboard Features:
- Target Tracking - Live scores for monitored individuals
- Threat Assessment - Overall system threat level
- Recent Alerts - High-priority discoveries
- Live Feed - Real-time article analysis
- Export Tools - Download data for analysis
Dashboard Controls:
Ctrl+R- Refresh feed manuallyCtrl+E- Export current data- Auto-refresh every 30 seconds
- Real-time score updates
π οΈ Troubleshooting
Common Issues:
Database Connection Errors:
# Verify database exists
npx wrangler d1 list
# Re-apply schema if needed
npx wrangler d1 execute prophecy-intelligence --file=schema.sqlHugging Face API Errors:
- Check your API key is valid
- Verify you have free tier quota remaining
- Monitor rate limits in dashboard
RSS Feed Errors:
- Feeds may temporarily fail (normal)
- Check logs:
npx wrangler tail - System automatically retries failed feeds
Performance Monitoring:
# Check worker logs
npx wrangler tail
# Monitor database size
npx wrangler d1 execute prophecy-intelligence --command="SELECT COUNT(*) FROM analyzed_articles;"
# Check recent activity
npx wrangler d1 execute prophecy-intelligence --command="SELECT COUNT(*) FROM analyzed_articles WHERE analyzed_at > datetime('now', '-1 hour');"π Youβre All Set!
Your Biblical Prophecy Intelligence Platform is now:
β
Monitoring 32+ RSS feeds automatically
β
Analyzing articles with AI for prophecy significance
β
Tracking key individuals with live scoring
β
Auto-saving high-scoring content to PostgreSQL
β
Providing real-time dashboard for monitoring
β
Running 24/7 on Cloudflareβs global network
Access Your Platform:
π Dashboard: https://prophecy-intelligence-platform.your-subdomain.workers.dev
π API: https://prophecy-intelligence-platform.your-subdomain.workers.dev/api/
ποΈ Database: Accessible via Cloudflare dashboard
Next Steps:
- Bookmark your dashboard for daily monitoring
- Set up mobile notifications if desired
- Customize scoring weights for your specific research focus
- Export data regularly for offline analysis
- Monitor system health through the dashboard
Your AI-powered biblical prophecy research system is now operational! π
Canonical Hub: CANONICAL_INDEX